<template>
  <div class="center-view">
    <div class="avatar" data-enter-time="1643524887">
      <img
        src="https://sz2115api.zf-maple.cn/images/uesr_default_head.png"
        class="avator-icon"
      />
      <div class="nick-name">{{ nickName }}</div>
    </div>
    <ul class="my-order-tab">
      <li v-for="pic in orders" :key="pic.id">
        <img :src="pic.img" style="width: 26px; height: 26px" alt="" /><span
          class="mint-badge is-primary is-size-small"
          style="display: none"
          >0
        </span>
        <div class="common-p">{{ pic.text }}</div>
      </li>
    </ul>
    <router-link
      :to="op.path"
      class="margin-set my-card"
      v-for="op in options"
      :key="op.id"
    >
      <img :src="op.img" style="width: 20px; height: 20px" alt="" /><span
        class="label"
        >{{ op.text }}</span
      ><img
        src=""
        alt=""
        class="arrows"
      />
    </router-link>
    <MovieBodyFooter />
  </div>
</template>
<script>
import MovieBodyFooter from "../movie/movie_body_footer.vue";
export default {
  components: {
    MovieBodyFooter,
  },
  data() {
    return {
      orders: [
        {
          id: 1,
          text: "电影订单",
          img: "https://sz2115api.zf-maple.cn/images/user_pic1.png",
        },
        {
          id: 2,
          text: "商品订单",
          img: "https://sz2115api.zf-maple.cn/images/user_pic2.png",
        },
      ],
      options: [
        {
          id: 1,
          text: "优惠券",
          img: "https://sz2115api.zf-maple.cn/images/user_option_1.png",
          path: "/user/coupon",
        },
        {
          id: 2,
          text: "组合红包",
          img: "https://sz2115api.zf-maple.cn/images/user_option_2.png",
          path: "/user/redenvelope",
        },
        {
          id: 3,
          text: "余额",
          img: "https://sz2115api.zf-maple.cn/images/user_option_3.png",
          path: "/user/money",
        },
        {
          id: 4,
          text: "帮助与客服",
          img: "https://sz2115api.zf-maple.cn/images/user_option_4.png",
          path: "/user/help",
        },
        {
          id: 5,
          text: "设置",
          img: "https://sz2115api.zf-maple.cn/images/user_option_5.png",
          path: "/user/setting",
        },
      ],
      nickName: "",
      headIcon: "",
    };
  },
  mounted() {
    this.get_user_info();
  },
  methods: {
    get_user_info() {
      let { nickName, headIcon } = JSON.parse(
        window.sessionStorage.getItem("loginInfo")
      ).data;
      this.nickName = nickName;
      this.headIcon = headIcon;
    },
  },
};
</script>
<style lang="less" scoped>
.lazy-img[data-v-21c202bd] {
  position: relative;
}

.lazy-img .padding[data-v-21c202bd] {
  background: #f4f4f4;
}

.lazy-img .lazy-img-wrap[data-v-21c202bd],
.lazy-img .padding[data-v-21c202bd] {
  height: 56vw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.lazy-img .lazy-img-wrap[data-v-21c202bd] {
  width: 100%;
  background: #fff;
  position: absolute;
  overflow: hidden;
  top: 0;
  opacity: 0;
}

.lazy-img .lazy-img-wrap img[data-v-21c202bd] {
  left: 0;
}

.lazy-img .lazy-img-wrap .target-img[data-v-21c202bd] {
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

.film-today-order {
  max-height: 206px;
  overflow-y: auto;
}

.order-item {
  margin-bottom: 10px;
  background: #fff;
  margin: 13px;
  border-radius: 6px;
}

.order-item .order-goods {
  height: 84px;
  padding: 10px 30px 10px 8px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.order-item .order-goods:after {
  content: " ";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  border-bottom: 1px solid #ededed;
  color: #ededed;
  -webkit-transform-origin: 0 100%;
  -ms-transform-origin: 0 100%;
  transform-origin: 0 100%;
  -webkit-transform: scaleY(0.5);
  -ms-transform: scaleY(0.5);
  transform: scaleY(0.5);
}

.order-item .order-goods .img-list {
  margin-right: 10px;
}

.order-item .order-goods .icon-quanju_liebiaojiantou {
  position: absolute;
  right: 12px;
  line-height: 70px;
  color: #bdc0c5;
}

.order-item .order-goods .sku-desc {
  width: calc(100% - 45px);
  position: relative;
  margin-left: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.order-item .order-goods .sku-desc .sku-product-name {
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item .order-goods .sku-desc .sku-name {
  font-size: 12px;
  color: #797d82;
}

.order-item .order-goods .sku-desc .text-level {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.order-item .order-goods .sku-desc .code-level {
  text-align: center;
}

.order-item .order-goods .sku-desc .code-level span {
  display: block;
  font-size: 10px;
  color: #797d82;
}

.qrcode-view {
  background: #fff;
  z-index: 400;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  color: #191a1b;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.qrcode-view .qrcode-container {
  margin: 30px auto;
}

.qrcode-view .code-tip {
  position: relative;
  width: 250px;
  word-break: break-word;
}

.qrcode-view .close-btn {
  position: absolute;
  bottom: 42px;
  width: 22px;
  left: 50%;
  margin-left: -11px;
}

.qrcode-view .normal {
  max-width: 72%;
  margin: 0 auto;
  color: #797d82;
  font-size: 13px;
  text-align: justify;
}

.qrcode-view .normal .highlight {
  color: #ff5f16;
}

.qrcode-view .hallname {
  margin-top: 15px;
  margin-bottom: 5px;
}

.qrcode-view .code .value {
  color: #ff5f16;
  margin-left: 28px;
}

.price-fmt {
  font-size: 15px;
  color: #ff5f16;
  height: 0 !important;
  display: inline-table !important;
}

.price-fmt,
.price-fmt span {
  float: none !important;
}

.price-fmt i {
  font-size: 11px;
  font-style: normal;
}

.center-view {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  font-size: 15px;
  background: #f4f4f4;
  margin-bottom: 59px;
}

.center-view .avatar {
  // text-align: center;
  // margin-top: -44px;
  // // height: 200px;
  // height: 136px;
  // padding-left: 22px;
  // padding-top: 64px;
  // // background: url(https://assets.maizuo.com/h5/v5/public/app/img/bg.a5bdd690.png);
  // background-size: cover;
  // display: -webkit-box;
  // display: -ms-flexbox;
  // display: flex;
  // -webkit-box-align: center;
  // -ms-flex-align: center;
  // align-items: center;
  // color: #fff;
  // background-color: #e54847;
  text-align: center;
  margin-top: -44px;
  height: 136px;
  /* padding-left: 22px; */
  padding-top: 64px;
  background-size: cover;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #fff;
  justify-content: center;
  background-color: #e54847;
}

.center-view .avatar .avator-icon {
  width: 63px;
  height: 63px;
  border-radius: 35px;
  // margin-right: 20px;
  // border: 2px solid #fff;
}

.center-view .avatar .nick-name {
  font-size: 16px;
  margin-left: 6px;
}

.center-view .my-order-tab {
  width: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-align: center;
  font-size: 13px;
  padding: 0;
  height: 79px;
  background: #fff;
  margin-bottom: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.center-view .my-order-tab li {
  position: relative;
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-view .my-order-tab li i {
  font-size: 32px;
  font-weight: 100;
  color: #5e5f60;
}

.center-view .my-order-tab li .left-border {
  height: 49px;
  position: absolute;
  right: -5px;
  bottom: 15px;
}

.center-view .my-order-tab li .common-p {
  color: #797d82;
}

.center-view .my-order-tab li .icon-dingdan-daifahuo {
  font-size: 34px;
  position: relative;
  bottom: 2px;
}

.center-view .my-order-tab li .icon-icon_shouhoutuikuan {
  font-size: 30px;
  line-height: 48px;
}

.center-view .my-order-tab li .dai-fahuo {
  margin-top: -8px;
}

.center-view .my-order-tab .mint-badge {
  padding: 0;
  font-size: 10px;
  height: 16px;
  line-height: 18px;
  min-width: 16px;
  background: #ff5f16;
  position: absolute;
  left: 52%;
  text-align: center;
  top: 0;
}

.center-view .my-order-tab .badge-padding {
  padding: 0 6px;
}

.center-view .reset-tab-margin {
  margin-bottom: 0;
}

.center-view .margin-set {
  background: #fff;
  padding: 0 15px;
  height: 49px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.center-view .margin-set .label {
  margin-left: 15px;
  color: #191a1b;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.center-view .margin-set .arrows {
  text-align: right;
  width: 6px;
  height: 10px;
}

.center-view .margin-set .system-set {
  margin-bottom: 50px;
}

.center-view .my-balance,
.center-view .my-card {
  position: relative;
}

.center-view .my-balance .value,
.center-view .my-card .value {
  text-align: right;
  color: #797d82;
  padding-right: 14px;
}

.center-view .my-balance .value .price-decimal,
.center-view .my-card .value .price-decimal {
  color: #797d82;
}

.center-view .my-balance:after,
.center-view .my-card:after {
  content: " ";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  border-bottom: 1px solid #ededed;
  color: #ededed;
  -webkit-transform-origin: 0 100%;
  -ms-transform-origin: 0 100%;
  transform-origin: 0 100%;
  -webkit-transform: scaleY(0.5);
  -ms-transform: scaleY(0.5);
  transform: scaleY(0.5);
  left: 13px;
}
</style>